package com.project.demo.enums;

public enum ResultCode {

	C200(200, "Success"),
	C201(201, "Success,无结果数据"),
	C202(202, "已存在重复"),
	C400(400, "Bad Request 参数错误"),
	C403(403, "Forbidden"),
	C404(404, "Not Found"),
	C500(500, "Internal Server Error"),
	C505(505, "Server exception"),
    ;

	private int code;
	private String desc;

	ResultCode(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}

	}